<?php

namespace App\Service\Feishu\Hire;

use App\Service\Feishu\Base\BaseService;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;

class ApplicationService extends BaseService
{

    public function getApplicationInfo(string $applicationId)
    {
        $url = 'open-apis/hire/v1/applications/' . $applicationId;

        return $this->formatData($this->curlGet($url));

    }

    public function getTalentInfo(string $talentId)
    {
        $url = 'open-apis/hire/v1/talents/%s?user_id_type=user_id';
        $url = vsprintf($url,[$talentId]);

        return $this->formatData($this->curlGet($url));
    }


}